package com.bw.module_home.adapter

import com.baway.home.model.HomeResult
import com.bw.module_home.R

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class HomeNoticeAdapter :BaseQuickAdapter<HomeResult,BaseViewHolder>(R.layout.item_home_notice) {
    override fun convert(holder: BaseViewHolder, item: HomeResult) {
        holder.setText(R.id.notice_title,item.title)
        holder.setText(R.id.notice_content,item.content)
        holder.setText(R.id.notice_time,item.publishTime)
    }
}